<script setup>

import { deleteApi } from '../../api/user';
import { ref ,getCurrentInstance} from 'vue';
const instance = getCurrentInstance()


// 删除方法
const deleteSubmit = async(id)=>{
  let result = await deleteApi(id)
    // 通知父组件
instance.emit('search')
}
// 向父组件暴露
defineExpose({
deleteSubmit
})
</script>
<template>



</template>